gnomeos: Add --skip-if-unchanged for yocto commit, also show a diff after building
authorColin Walters <walters@verbum.org>
Fri, 23 Dec 2011 12:45:13 +0000 (07:45 -0500)
committerColin Walters <walters@verbum.org>
Fri, 23 Dec 2011 12:45:13 +0000 (07:45 -0500)
We don't want to make new commits if nothing changed.

gnomeos/yocto/commit-yocto-build.sh

index 2778847f9dfd767e9018a43fcbaeb98467f207ae..f622d36a99c77a1748eee80ff26f2bfc52fa8702 100755 (executable)
@@ -37,4 +37,5 @@ BUILD_TAR=$BUILDDIR/deploy/images/gnomeos-contents-$BRANCH-qemu${ARCH}.tar.gz
 
 BUILD_TIME=$(date -r $BUILD_TAR)
 
-ostree --repo=${OSTREE_REPO} commit -s "Build from OSTree ${OSTREE_VER}" -b "gnomeos-yocto-$ARCH-$BRANCH" --tree=tar=${BUILD_TAR}
+ostree --repo=${OSTREE_REPO} commit --skip-if-unchanged -s "Build from OSTree ${OSTREE_VER}" -b "gnomeos-yocto-$ARCH-$BRANCH" --tree=tar=${BUILD_TAR}
+ostree --repo=${OSTREE_REPO} diff "gnomeos-yocto-$ARCH-$BRANCH"^ "gnomeos-yocto-$ARCH-$BRANCH"